package model.pojo;
import java.io.Serializable;
import java.util.ArrayList;

import resource.pojo.Status;
public class Approvedoc implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String iDApproveDoc;
	private String title="";
	private String content="";
	private String iDEmployee="";
	private String iDGroupApprove="";
	private String timecreate="";
	private Integer iDStatus=0;
	private Integer iDTypeDoc=0;
	private String timeApprove="";
	private String comment="";
	private String description="";
	private String purpose="";
	private String employeePerforment="";
	private String tripDate="";
	private String totalTime="";
	private String location="";
	private boolean checkAddReceiver = false;
	
	private Typedoc typeDoc;
	private GroupApprove groupApprove;
	private Employee employee;
	private Status status;
	private ArrayList<ListApprove> allListApprove=new ArrayList<ListApprove>();
	
	public Approvedoc() {
	}

	public Approvedoc(String iDApproveDoc, String title, String content,
			String iDEmployee, String iDGroupApprove, String timecreate,
			Integer iDStatus, Integer iDTypeDoc, String timeApprove,
			String comment, String description) {
		super();
		this.iDApproveDoc = iDApproveDoc;
		this.title = title;
		this.content = content;
		this.iDEmployee = iDEmployee;
		this.iDGroupApprove = iDGroupApprove;
		this.timecreate = timecreate;
		this.iDStatus = iDStatus;
		this.iDTypeDoc = iDTypeDoc;
		this.timeApprove = timeApprove;
		this.comment = comment;
		this.description = description;
		
	}
	
	public Approvedoc(String iDApproveDoc, String title, String content,
			String iDEmployee, String iDGroupApprove, String timecreate,
			Integer iDStatus, Integer iDTypeDoc, String timeApprove,
			String comment,String description,String purpose, String employeePerforment, String tripDate, String totalTime, String location) {
		super();
		this.iDApproveDoc = iDApproveDoc;
		this.title = title;
		this.content = content;
		this.iDEmployee = iDEmployee;
		this.iDGroupApprove = iDGroupApprove;
		this.timecreate = timecreate;
		this.iDStatus = iDStatus;
		this.iDTypeDoc = iDTypeDoc;
		this.timeApprove = timeApprove;
		this.comment=comment;
		this.description = description;
		this.purpose = purpose;
		this.employeePerforment = employeePerforment;
		this.tripDate = tripDate ;
		this.totalTime = totalTime;
		this.location = location;
	}

	public String getiDApproveDoc() {
		return iDApproveDoc;
	}

	public void setiDApproveDoc(String iDApproveDoc) {
		this.iDApproveDoc = iDApproveDoc;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getiDEmployee() {
		return iDEmployee;
	}

	public void setiDEmployee(String iDEmployee) {
		this.iDEmployee = iDEmployee;
	}

	public Integer getiDStatus() {
		return iDStatus;
	}

	public void setiDStatus(Integer iDStatus) {
		this.iDStatus = iDStatus;
	}

	public String getiDGroupApprove() {
		return iDGroupApprove;
	}

	public void setiDGroupApprove(String iDGroupApprove) {
		this.iDGroupApprove = iDGroupApprove;
	}

	public Integer getiDTypeDoc() {
		return iDTypeDoc;
	}

	public void setiDTypeDoc(Integer iDTypeDoc) {
		this.iDTypeDoc = iDTypeDoc;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((iDApproveDoc == null) ? 0 : iDApproveDoc.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Approvedoc other = (Approvedoc) obj;
		if (iDApproveDoc == null) {
			if (other.iDApproveDoc != null)
				return false;
		} else if (!iDApproveDoc.equals(other.iDApproveDoc))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Approvedoc [tile=" + title + "]";
	}

	public boolean isCheckAddReceiver() {
		return checkAddReceiver;
	}

	public void setCheckAddReceiver(boolean checkAddReceiver) {
		this.checkAddReceiver = checkAddReceiver;
	}
	
	public String getPurpose() {
		return purpose;
	}

	public void setPurpose(String purpose) {
		this.purpose = purpose;
	}
	
	public String getEmployeePerforment() {
		return employeePerforment;
	}

	public void setEmployeePerforment(String employeePerforment) {
		this.employeePerforment = employeePerforment;
	}

	public String getTimecreate() {
		return timecreate;
	}

	public void setTimecreate(String timecreate) {
		this.timecreate = timecreate;
	}

	public String getTimeApprove() {
		return timeApprove;
	}

	public void setTimeApprove(String timeApprove) {
		this.timeApprove = timeApprove;
	}

	public String getTripDate() {
		return tripDate;
	}

	public void setTripDate(String tripDate) {
		this.tripDate = tripDate;
	}

	public String getTotalTime() {
		return totalTime;
	}

	public void setTotalTime(String totalTime) {
		this.totalTime = totalTime;
	}
	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public Status getStatus() {
		return status;
	}

	public void setStatus(Status status) {
		this.status = status;
	}

	public Employee getEmployee() {
		return employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	public Typedoc getTypeDoc() {
		return typeDoc;
	}

	public void setTypeDoc(Typedoc typeDoc) {
		this.typeDoc = typeDoc;
	}

	public GroupApprove getGroupApprove() {
		return groupApprove;
	}

	public void setGroupApprove(GroupApprove groupApprove) {
		this.groupApprove = groupApprove;
	}

	public ArrayList<ListApprove> getAllListApprove() {
		return allListApprove;
	}

	public void setAllListApprove(ArrayList<ListApprove> allListApprove) {
		this.allListApprove = allListApprove;
	}
	
}

